cmake_minimum_required(VERSION 3.0.2)
project(cob_cam3d_throttle)

find_package(catkin REQUIRED COMPONENTS message_filters nodelet pluginlib roscpp sensor_msgs)





###################################
## catkin specific configuration ##
###################################
catkin_package(
    CATKIN_DEPENDS message_filters nodelet pluginlib roscpp sensor_msgs
    LIBRARIES cam3d_throttle
)

###########
## Build ##
###########
include_directories(${catkin_INCLUDE_DIRS})

add_library(cam3d_throttle src/cam3d_throttle.cpp)
target_link_libraries(cam3d_throttle ${catkin_LIBRARIES})
add_dependencies(cam3d_throttle ${catkin_EXPORTED_TARGETS})


#############
## Install ##
#############

## Mark executables and/or libraries for installation
install(TARGETS cam3d_throttle
  ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## Mark cpp header files for installation
install(DIRECTORY launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(FILES
   nodelet_plugins.xml
   DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
